Kourier Integrator Online Help

HOW TO - Implementing the SUBSCRIBE Method in a Resource

Requirement for the Default GET Resource Export

Subscriptions are implemented using standard Kourier exports (for GETs) and imports (for POST and DELETE). The Export Specification (referenced in the header of the REST resource) that implements the default GET operation for a resource must adhere to certain requirements if that resource is configured to allow subscriptions. Those requirements are detailed below.

Creating the Subscription Import/Export

The KOURIER account has a sample export and import that can be used to implement subscriptions for your REST integration. Use the suitcase tools to move the DEMO_SUBSCRIBE export and import from the KOURIER account into your application account by performing the following steps.

  1. Select the Pack Suitcase option from the Administration menu in the KOURIER account.
  2. Type a name for your suitcase in the Suitcase Name field.
  3. Select the checkbox for the DEMO Integration ID.
  4. Click the Pack button to pack your suitcase. The suitcase file will be saved to the folder location that you have designated in your web browser settings.
  5. Connect to your application account by selecting the Connections option from the Administration menu.
  6. Select the Unpack Suitcase option from the Administration menu in your application account.
  7. Select the Choose File button and navigate to the location where you saved your suitcase, and click the Open button.
  8. Unselect all items.
  9. Select the checkboxes for the DEMO_SUBSCRIBE Component IDs for KT_IMPORTS and KT_EXPORTS. You only need to select these two items.
  10. Click the Unpack icon on the toolbar to unpack your selected components. An Unpack Suitcase Options window appears.

  11. Click the Continue button without selecting any other options. The Unpack Suitcase Results window appears that lists the components that were unpacked from the suitcase.

  12. Click Continue to close the Unpack Suitcase window.

  13. Navigate to the Export Specifications listing, open the DEMO_SUBSCRIBE export specification, and use the Save As button to save it as RWS_SUBSCRIBE.
  14. Navigate to the Import Specifications listing, open the DEMO_SUBSCRIBE import specification, and use the Save As button to save it as RWS_SUBSCRIBE.
  15. In order for the subscription to be aware of the required parameters for the default export, you need to follow the steps below. In the SUBSCRIBE Import Specification you just renamed, make the following changes:

Following is the URL for DELETE if the “Required” checkbox is used:

					http://greenflash.koretech.com:8082/RWS/CUSTOMERS/SUBSCRIBE/10049?Location=T1

Following is the URL for DELETE if the “Required” checkbox is NOT used:

					http://greenflash.koretech.com:8082/RWS/CUSTOMERS/SUBSCRIBE/10049 

Adding Subscriptions to a Resource

Subscriptions are implemented like any other sub-resource. Therefore you need to:

If all resources in your integration use the same parameter(s) you can use the same import to implement subscriptions across multiple resources.

Related Topics: 

Pack Kourier Suitcase

Unpack Kourier Suitcase

HOW TO – Create a Subscription for a RESOURCE using Postman